package net.huashitong.taskGroup.databean;

public enum ScoreSummaryHeaders {

    sysId("sysId","序号"),                        //考核任务单号
    checkObject("checkObject","考核对象"),        //考核对象
    score("score","最终得分"),                    //最终得分
    rank("rank","排名"),                          //考核内容
    checkDept("checkDept","所属部门"),            //所属部门
    summaryDate("summaryDate","汇总时间")         //汇总时间
    ;
    private String code;
    private String value;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    ScoreSummaryHeaders(String code, String value) {
        this.code = code;
        this.value = value;
    }
    public static ScoreSummaryHeaders getValues(String code)
    {
        for (ScoreSummaryHeaders item:values())
        {
            if(item.getCode().equals(code))
            {
                return item;
            }
        }
        return  null;
    }
}
